$OpenBSD: patch-Makefile_in,v 1.2 2014/07/14 20:17:17 edd Exp $
--- Makefile.in.orig	Sun Jun 29 07:53:20 2014
+++ Makefile.in	Tue Jul  8 16:24:52 2014
@@ -820,7 +820,7 @@ desktop-install:
 	$(mkinstalldirs) $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes; \
 	$(mkinstalldirs) $(DESTDIR)$$desktopdir/mime/packages; \
 	$(mkinstalldirs) $(DESTDIR)$$desktopdir/applications; \
-	$(mkinstalldirs) $(DESTDIR)/usr/share/mimelnk/application; \
+	$(mkinstalldirs) $(DESTDIR)$$desktopdir/mimelnk/application; \
 	$(INSTALL_DATA) $(srcdir)/pixmaps/xournal.svg $(DESTDIR)$$desktopdir/icons/hicolor/scalable/apps; \
 	$(INSTALL_DATA) $(srcdir)/pixmaps/xoj.svg $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes; \
 	if test ! -e $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-xoj.svg; then \
@@ -828,7 +828,7 @@ desktop-install:
 	fi; \
 	$(INSTALL_DATA) $(srcdir)/xournal.xml $(DESTDIR)$$desktopdir/mime/packages; \
 	$(INSTALL_DATA) $(srcdir)/xournal.desktop $(DESTDIR)$$desktopdir/applications; \
-	$(INSTALL_DATA) $(srcdir)/x-xoj.desktop $(DESTDIR)/usr/share/mimelnk/application; \
+	$(INSTALL_DATA) $(srcdir)/x-xoj.desktop $(DESTDIR)$$desktopdir/mimelnk/application; \
 	if test -z "$(DESTDIR)"; then \
 	  echo "Updating desktop, mime, and icon databases."; \
 	  update-desktop-database; \
